package com.ruoyi.market.domain;

import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * 店铺基本配置对象 configBase
 *
 * @author ruoyi
 */
public class ConfigBase extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /* 店铺ID */
    private String shopId;

    // 店名
    private String shopName;

    // 店铺描述
    private String shopDescription;

    // 店铺头像
    private String shopAvatar;

    // 金额单位
    private String shopUnit;

    // 客服二维码
    private String serverCode;

    // 客服微信号
    private String serverWxId;

    public ConfigBase() {

    }

    public ConfigBase(String shopId) {
        this.shopId = shopId;
    }

    @NotBlank(message = "店铺ID不能为空")
    public String getShopId() {
        return shopId;
    }

    public void setShopId(String shopId) {
        this.shopId = shopId;
    }

    @NotBlank(message = "店铺名称不能为空")
    @Size(min = 2, max = 30, message = "标签长度不能超过30个字符")
    public String getShopName() {
        return shopName;
    }

    public void setShopName(String shopName) {
        this.shopName = shopName;
    }

    public String getShopAvatar() {
        return shopAvatar;
    }

    public void setShopAvatar(String shopAvatar) {
        this.shopAvatar = shopAvatar;
    }

    public String getShopUnit() {
        return shopUnit;
    }

    public void setShopUnit(String shopUnit) {
        this.shopUnit = shopUnit;
    }

    public String getShopDescription() {
        return shopDescription;
    }

    public void setShopDescription(String shopDescription) {
        this.shopDescription = shopDescription;
    }

    public String getServerCode() {
        return serverCode;
    }

    public void setServerCode(String serverCode) {
        this.serverCode = serverCode;
    }

    public String getServerWxId() {
        return serverWxId;
    }

    public void setServerWxId(String serverWxId) {
        this.serverWxId = serverWxId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("shopId", getShopId())
                .append("shopName", getShopName())
                .append("shopUnit", getShopUnit())
                .append("shopAvatar", getShopAvatar())
                .append("shopDescription", getShopDescription())
                .append("serverCode", getServerCode())
                .append("serverWxId", getServerWxId())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
